//
//  AllWarnEventTableViewCell.m
//  Rail
//
//  Created by hychen on 2018/2/28.
//  Copyright © 2018年 Hychen. All rights reserved.
//

#import "AllWarnEventTableViewCell.h"

@interface AllWarnEventTableViewCell ()
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *allNumLabel;
//未处理
@property (weak, nonatomic) IBOutlet UILabel *doneNumLabel;
//已处理
@property (weak, nonatomic) IBOutlet UILabel *todoNumLabel;

@end
@implementation AllWarnEventTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    [self showArrowWithImage:nil];
    [self showBottomLineWithPaddingX:15 color:nil];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setModel:(InformationEventModel *)model {
    _model = model;
    self.nameLabel.text = model.event_name;
    self.allNumLabel.text = model.all_count?:@"0";
    self.doneNumLabel.text = model.processing_count?:@"0";
    self.todoNumLabel.text = model.processed_count?:@"0";
}
@end
